package designMode.buildMode.abstractFfactory;

import designMode.buildMode.abstractFfactory.factoryImpl.SendMailFactory;
import designMode.buildMode.abstractFfactory.factoryImpl.SendSmsFactory;

/**
 * Created by Administrator on 2018/4/10.
 */
public class FactoryTest {

    public static void main(String[] args) {
        Provider provider = new SendMailFactory();
        Sender sender = provider.produce();
        sender.send();

        provider = new SendSmsFactory();
        sender = provider.produce();
        sender.send();
    }
}
